package com.example.mybatisplus.service;

import com.example.mybatisplus.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.jws.soap.SOAPBinding;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lxp
 * @since 2022-05-31
 */
public interface UserService extends IService<User> {

    User getUserbyName(String name);

    User getConsultantById(Long id);

    List<User> getConsultants();

    Long getIdByName(String username);
    Long getTeacherIdByName(String teacherName);

    List<User> getSpareConsultantsByTimeId(Long id);

    List<User> getRole(int role);

    List<User> getSpareFirstvisitsByTimeId(Long id);

    User getByIdAndType(Long id, int role);

    Long getByNameAndType(String teacherName, int role);
}
